package com.mccrea.pattern.handler;

/**
 * @Classname Client
 * @Description 请假测试类
 * @Date 2021/5/24 0024 16:33
 * @Created by Mccrea_Gao
 */
public class Client {
    public static void main(String[] args) {
        Leader leader1 = new ClassAdviser();
        Leader leader2 = new DepartmentHead();
        Leader leader3 = new Dean();
        leader1.setNext(leader2);
        leader2.setNext(leader3);
        leader1.handleRequest(5);
    }
}
